package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    void insert(NursingLevel nursingLevel);

    void update(NursingLevel nursingLevel);


    List<NursingLevel> listAll();

    Page<NursingLevelVo> selectByPage(String name, Integer status);

    NursingLevel findById(long id);

    int update(NursingProject nursingProject);

    void deleteById(Long id);

    @Update("update nursing_level set status = #{status} where id = #{id}")
    void isEnable(Long id, Integer status);
}
